package net.huashitong.user.dao;

import java.util.List;

import net.huashitong.user.entity.Dynamic;

import org.springframework.stereotype.Repository;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;
import com.sirdc.modules.core.filter.BaseFilter;

@Repository
public class DynamicDao extends StringDao<Dynamic> {

	public List<Dynamic> queryOrderDate() {
		GenericQuery query = createQuery("obj");
		query.setOrder("date", BaseFilter.DESC);
		return query.listResult();
	}

}
